package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.Userinfo;
import com.stylefeng.guns.modular.system.dao.UserinfoMapper;
import com.stylefeng.guns.modular.system.service.IUserinfoService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-10-11
 */
@Service
public class UserinfoServiceImpl extends ServiceImpl<UserinfoMapper, Userinfo> implements IUserinfoService {

    @Autowired
    UserinfoMapper userinfoMapper;

    public int addPhoneUserinfo(Userinfo phoneUserinfo){
        return userinfoMapper.insert(phoneUserinfo);
    }

    public List<Userinfo> selByPhoneUdid(String phoneUdid){
        return userinfoMapper.selByPhoneUdid(phoneUdid);
    }

}
